package com.kitchen.ui.controls.setting
{
	import com.kitchen.AbstractButton;
	
	import flash.display.BitmapData;
	import flash.events.MouseEvent;
	import flash.geom.Point;
	import flash.geom.Rectangle;

	public class settingButton extends AbstractButton
	{
		public function settingButton(bitdata:BitmapData)
		{
			super(bitdata);
		}
		
		override protected function getBitmapData(bitdata:BitmapData):BitmapData{
			this.w = 30;
			this.h = 32;
			var cbitdata:BitmapData = new BitmapData(this.w*3, this.h);
			cbitdata.copyPixels(bitdata, new Rectangle(255, 200, this.w*3, this.h), new Point());
			return cbitdata;
		}
		
		override protected function onMouseOver(me:MouseEvent):void{
			this.offsetX(this.w+2);
		}
		
		override protected function onMouseDown(me:MouseEvent):void{
			this.offsetX(this.w+2);
		}
		
	}
}